package guo.factoryBean;

import guo.bean.JavaBeanTest;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class JavaFactoryBeanTest implements FactoryBean<JavaBeanTest> {

    @Override
    public JavaBeanTest getObject() throws Exception {
        JavaBeanTest beanTest = new JavaBeanTest();
        return beanTest;
    }

    @Override
    public Class<?> getObjectType() {
        return JavaBeanTest.class;
    }
}
